import App from '../app'

export default [
    {
        path: '/',
        component: App,
        children: [
            // 地推注册
            {
                path: '/areaexpanddetail/:DeptCode/:DeptName',
                meta: { auth: false },
                component: resolve => require(['../pages/register/areaexpanddetail'], resolve),
                alias: '/2/:DeptCode/:DeptName'
            },
            // 微信过滤页面
            {
                name: 'wxtrans1',
                path: '/wxtrans/:userId',
                meta: { auth: false },
                component: resolve => require(['../pages/common/wxtransition'], resolve)
            },
            // ZSTJ Banner图页面
            {
                path: '/banner',
                meta: { auth: false },
                component: resolve => require(['../pages/zstj/bannersdetail'], resolve)
                //     redirect: '/consult'
            },
            // ZSTJ 咨询页面
             {
                path: '/consult/:id',
                meta: { auth: false },
                component: resolve => require(['../pages/zstj/consultdetail'], resolve),
            },
            {
                path: '/login',
                meta: { auth: false },
                component: resolve => require(['../pages/login/'], resolve)
            },
            {
                path: '/signout',
                component: resolve => require(['../pages/signout/'], resolve)
            },
            {
                path: '/home',
                component: resolve => require(['../pages/home/'], resolve)
            },
            {
                path: '/',
                meta: { auth: false },
                component: resolve => require(['../pages/index/'], resolve)
            },
            {
                path: '*',
                redirect: '/login'
            }
        ]
    }
]
